﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CatalogoProductos.aspx.cs" Inherits="CapaPresentacion.CatalogoProductos" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <center>
   
    <div>
      
        <br />
        <asp:Menu ID="Menu1" runat="server" Orientation="Horizontal">
            <Items>
                <asp:MenuItem Text="Inicio" Value="Nuevo elemento"></asp:MenuItem>
                <asp:MenuItem NavigateUrl="~/CatalogoProductos.aspx" Text="Catalogo" 
                    Value="Nuevo elemento"></asp:MenuItem>
                <asp:MenuItem NavigateUrl="~/Login/LoginUsuarios.aspx" Text="Iniciar Sesion" 
                    Value="Nuevo elemento"></asp:MenuItem>
                <asp:MenuItem NavigateUrl="~/CarritoCompras.aspx" Text="Ver Carrito" 
                    Value="Nuevo elemento"></asp:MenuItem>
            </Items>
        </asp:Menu>
        <br />
      
        Catálogo de Productos<asp:Button 
            ID="btnCarrito" runat="server" onclick="btnCarrito_Click" Text="Ver Carrito" 
            Width="126px" />
        <asp:ImageButton ID="btnVerCarrito" runat="server" BorderStyle="Double" 
            Height="44px" ImageUrl="~/Botones/comercio-electrónico13.jpg" 
            onclick="btnVerCarrito_Click" Width="159px" />
        <br />
        <asp:DataList ID="DataList1" runat="server" CellPadding="4" 
            DataSourceID="ObjectDataSource1" ForeColor="#0066FF" RepeatColumns="4" 
            RepeatDirection="Horizontal" onitemcommand="DataList1_ItemCommand" 
            BackColor="#FF6600" BorderColor="Blue" BorderWidth="1px" Font-Bold="True" 
            Font-Italic="False" Font-Names="Arial" Font-Overline="False" 
            Font-Size="XX-Small" Font-Strikeout="False" Font-Underline="False" 
            GridLines="Both" HorizontalAlign="Center" Width="901px" 
            >
            <AlternatingItemStyle BackColor="White" Font-Bold="False" Font-Italic="False" 
                Font-Overline="False" Font-Size="X-Small" Font-Strikeout="False" 
                Font-Underline="False" />
            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <ItemStyle BackColor="#FFFBD6" ForeColor="#333333" />
            <ItemTemplate>
                <br />
                <table style="width:103%; font-size: x-small; background-color: #FFFFFF;">
                    <tr>
                        <td>
                            <img alt="" src="imagenes/<%#Eval("Foto") %>" style="height: 120px; width: 101px; margin-top: 0px;" border="2" />
                        </td>
                        <td style="color: #FFFFFF; font-size: x-small; text-align: left; font-style: italic; background-color: #FF6600">
                            IdProducto:
                            <asp:Label ID="IdProductoLabel" runat="server" 
                                Text='<%# Eval("IdProducto") %>' />
                            <br />
                            Nombre:
                            <asp:Label ID="NombreLabel" runat="server" Text='<%# Eval("Nombre") %>' />
                            <br />
                            Descripcion:
                            <asp:Label ID="DescripcionLabel" runat="server" 
                                Text='<%# Eval("Descripcion") %>' />
                            <br />
                            Precio:
                            <asp:Label ID="PrecioLabel" runat="server" Text='<%# Eval("Precio") %>' />
                            <br />
                            Stock:
                            <asp:Label ID="StockLabel" runat="server" Text='<%# Eval("Stock") %>' />
                            <br />
                            Foto:
                            <asp:Label ID="FotoLabel" runat="server" Text='<%# Eval("Foto") %>' />
                            <br />
                            IdCategoria:
                            <asp:Label ID="IdCategoriaLabel" runat="server" 
                                Text='<%# Eval("IdCategoria") %>' />
                        </td>
                    </tr>
                </table>
                <asp:ImageButton ID="Agregar" runat="server" Height="36px" 
                     Width="176px" CommandName="Agregar" 
                    ImageUrl="~/Botones/agregar-carrito-on.jpg"  />
                <br />
            </ItemTemplate>
            <SelectedItemStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
        </asp:DataList>
        <br />
        <br />
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="listaCatalogoProductos" TypeName="CapaNegocio.ProductoNE">
        </asp:ObjectDataSource>
        <br />
        <br />
        <br />
    
    </div>
     </center>
    </form>
</body>
</html>
